package com.hybrid.jsbridge;

/**
 * 在此写用途
 *
 * @author: zhiwei
 * @date: 2017-10-09 22:56
 * @version: 9.1.0
 */
public interface WVAsyncAuthCheck {
    /**
     * JS API异步鉴权，同步返回是否通过鉴权
     *
     * @return true to pass, or false to return immediately.
     */

    boolean AsyncapiAuthCheck(String url, WVCallMethodContext callmethod, AsyncAuthCheckCallBack callback);

    public interface AsyncAuthCheckCallBack {
        /**
         * JS API异步鉴权回调
         *
         */
        void callBackSuccess(String url, WVCallMethodContext callmethod);

        void callBackFail(String url, WVCallMethodContext callmethod);

    }
}
